package com.apexsoft.assets.base.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Created by Administrator on 2018/2/23.
 */
@ApiModel(description = "对象响应报文")
/* *
 * 后期废弃，请求对象继承JSONResponse即可，
 *
 * */
@Deprecated
public class DataJSONResponse<T> extends JSONResponse {

    @ApiModelProperty(position = 2, notes = "业务数据")
    private T data;

    public DataJSONResponse() {
        this(CODE_SUCCESS, "", null);
    }

    public DataJSONResponse(int code, String note, T data) {
        super(code, note);
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
